import request from '@/utils/request'

// api地址
const api = {
  info: 'user/pointsInfo',
  withdraw: 'user/withdraw',
}

// 积分
export const info = () => {
  return request.get(api.info)
}

// 积分
export const withdraw = (data) => {
  return request.get(api.withdraw, { form: data})
}
